import { DailyWorkAT } from "../action-types";

interface AddTaskAction {
  type: DailyWorkAT.ADDDAILYTASK;
  task: string;
}

interface RemoveTaskAction {
  type: DailyWorkAT.REMOVEDAILYTASK;
  index: number;
}

interface EditTaskAction {
  type: DailyWorkAT.EDITDAILYTASK;
  index: number;
  task: string;
}

export type DailyWorkAction = AddTaskAction | RemoveTaskAction | EditTaskAction;
